package com.ttkj.canal.canaltest.listener;

import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;

@Component
public class RabbitmqListener {
    @RabbitHandler
    @RabbitListener(bindings ={@QueueBinding(value = @Queue(value = "hari_express_goods"),
            exchange =@Exchange(value = "exchange.canal"))}, containerFactory = "rabbitListenerContainerFactory")
    public void updateCidsProcess(@Payload String dataJson) {
        System.out.println(dataJson);
    }
}
